ServiceWorkerDomain

class ServiceWorkerDomain : Domain

ServiceWorkerDomain represents ServiceWorker protocol domain request/response operations and events that can be captured.

This API is marked as experimental in protocol definition and can change in the future.

Functions

deliverPushMessage
Link copied to clipboard
fun deliverPushMessage(input: DeliverPushMessageRequest): Single<RequestResponseFrame>
description
Link copied to clipboard
fun description(): String
Returns domain description.
disable
Link copied to clipboard
fun disable(): Single<RequestResponseFrame>
dispatchPeriodicSyncEvent
Link copied to clipboard
dispatchSyncEvent
Link copied to clipboard
fun dispatchSyncEvent(input: DispatchSyncEventRequest): Single<RequestResponseFrame>
enable
Link copied to clipboard
fun enable(): Single<RequestResponseFrame>
events
Link copied to clipboard
fun events(): Flowable<Event>
Returns flowable capturing all domains events.
fun events(filter: Predicate<Event>): Flowable<Event>
Returns flowable capturing all domains events matching predicate.
fun <T : Event> events(eventClass: Class<T>): Flowable<T>
Returns flowable capturing all domain events of a given type.
fun <T : Event> events(eventClass: Class<T>, filter: Predicate<T>): Flowable<T>
Returns flowable capturing all domain events of a given type matching predicate.
getDependencies
Link copied to clipboard
open override fun getDependencies(): List<Domain>
Returns list of dependant domains that should be enabled prior to enabling this domain.
inspectWorker
Link copied to clipboard
fun inspectWorker(input: InspectWorkerRequest): Single<RequestResponseFrame>
name
Link copied to clipboard
fun name(): String
Returns domain name.
setForceUpdateOnPageLoad
Link copied to clipboard
fun setForceUpdateOnPageLoad(input: SetForceUpdateOnPageLoadRequest): Single<RequestResponseFrame>
skipWaiting
Link copied to clipboard
fun skipWaiting(input: SkipWaitingRequest): Single<RequestResponseFrame>
startWorker
Link copied to clipboard
fun startWorker(input: StartWorkerRequest): Single<RequestResponseFrame>
stopAllWorkers
Link copied to clipboard
fun stopAllWorkers(): Single<RequestResponseFrame>
stopWorker
Link copied to clipboard
fun stopWorker(input: StopWorkerRequest): Single<RequestResponseFrame>
unregister
Link copied to clipboard
fun unregister(input: UnregisterRequest): Single<RequestResponseFrame>
updateRegistration
Link copied to clipboard
fun updateRegistration(input: UpdateRegistrationRequest): Single<RequestResponseFrame>
workerErrorReported
Link copied to clipboard
fun workerErrorReported(): Flowable<WorkerErrorReportedEvent>
Returns observable capturing all ServiceWorker.workerErrorReported events.
workerRegistrationUpdated
Link copied to clipboard
fun workerRegistrationUpdated(): Flowable<WorkerRegistrationUpdatedEvent>
Returns observable capturing all ServiceWorker.workerRegistrationUpdated events.
workerVersionUpdated
Link copied to clipboard
fun workerVersionUpdated(): Flowable<WorkerVersionUpdatedEvent>
Returns observable capturing all ServiceWorker.workerVersionUpdated events.

Sources

jvm source
Link copied to clipboard